/* Tabs + bar layout */
#courses-top { margin-top: 0; overflow: visible; }
#courses-top .tabbed { overflow: visible; }
#courses-top .header { position: relative; z-index: 2; }

/* Tabs row with exact 1px gap above the bar */
#courses-top-tabs {
	display: flex;
	gap: -10px;
	margin-bottom: 0;
	margin-top: 20px;
}

/* Tab button */
#courses-top-tabs .tab {
	display: inline-flex;
	align-items: center;
	gap: 0px;
	border-radius: 16px 16px 0 0;
	padding: 12px 10px;
	margin-left: 20px;
	margin-bottom: 0;
	min-width: 320px;
	height: 50px;
	box-sizing: border-box;
	line-height: 1.4em;
	position: relative;
	z-index: 10;
}


@media screen and (min-width: 768px) {
	#courses-top-tabs .tab h2.tab-text { font-size: 18px; }
}
@media screen and (min-width: 981px) {
	#courses-top-tabs .tab h3.tab-text { font-size: 18px; }
}
@media screen and (min-width: 981px) {
	#courses-top-tabs .tab img.tab-icon,
	#courses-top-tabs .tab svg.tab-icon {
		width: 60px;
		height: 60px;
		object-fit: contain;
	}
}

/* Active/inactive backgrounds */
#courses-top-tabs .tab.active {
	background: linear-gradient(180deg,#f3d04f 0%, #e4b22c 100%);
}
#courses-top-tabs .tab:not(.active) {
	background: linear-gradient(180deg,#9a9a9a 0%, #6f6f6f 100%);
}

/* Remove space between tabs and table */
#courses-top .tabbed {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Remove the gap completely */
#courses-top {
	margin-bottom: 0 !important;
}

#courses-top .bordered-box.tabbed {
	margin-top: -1px !important;
}

/* Force remove all spacing */
#courses-top-tabs + .col.span_12_of_12.bordered-box.radius.tabbed {
	margin-top: 0px !important;
	border-top: none !important;
}

.group.padding-t {
	padding-top: 0 !important;
}

#courses-top .col.span_12_of_12 {
	margin-top: 0px !important;
}

/* Even more aggressive removal */
#courses-top .tabbed.margin-b {
	margin-top: -4px !important;
	margin-bottom: 0 !important;
}

#courses-top-tabs {
	margin-bottom: -5px !important;
}

/* Align all form fields properly */
#courses-top .form-fieldset {
	display: flex;
	align-items: center;
	margin-bottom: 12px;
}

#courses-top .form-fieldset span {
	min-width: 150px;
	text-align: right;
	padding-right: 10px;
	flex-shrink: 0;
}

#courses-top .form-fieldset input {
	flex: 1;
	max-width: 300px;
	height: 35px;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

/* Remove border from Restrictions field only */
#_ctl0_MainContentPlaceHolder_RestrictionsTextBox {
	border: none !important;
	background: transparent !important;
	padding: 0 !important;
	outline: none !important;
	box-shadow: none !important;
}





